package com.flatfish.acvsystem.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "acv_apk_auth")
public class ACVApkAuthEntity {
	@Id
	@javax.persistence.Column(name = "id", unique = true)
	@javax.persistence.GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	@Column(name = "apk_file_name")
	private String name;
	
	@Column(name = "url")
	private String url;
	
	@Column(name = "auth_state")
	private Integer authState;
	
	@Column(name = "hash")
	private String hash;
	
	@Column(name = "package_id")
	private String packageId;
	
	@Column(name = "version")
	private String version;
	
	@Column(name = "standard_apk_id")
	private String standardApkId;

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @return the authState
	 */
	public Integer getAuthState() {
		return authState;
	}

	/**
	 * @param authState the authState to set
	 */
	public void setAuthState(Integer authState) {
		this.authState = authState;
	}

	/**
	 * @return the hash
	 */
	public String getHash() {
		return hash;
	}

	/**
	 * @param hash the hash to set
	 */
	public void setHash(String hash) {
		this.hash = hash;
	}

	/**
	 * @return the packageId
	 */
	public String getPackageId() {
		return packageId;
	}

	/**
	 * @param packageId the packageId to set
	 */
	public void setPackageId(String packageId) {
		this.packageId = packageId;
	}

	/**
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}

	/**
	 * @param version the version to set
	 */
	public void setVersion(String version) {
		this.version = version;
	}

	/**
	 * @return the standardApkId
	 */
	public String getStandardApkId() {
		return standardApkId;
	}

	/**
	 * @param standardApkId the standardApkId to set
	 */
	public void setStandardApkId(String standardApkId) {
		this.standardApkId = standardApkId;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ACVApkAuthEntity [id=" + id + ", name=" + name
				+ ", url=" + url + ", authState=" + authState + ", hash="
				+ hash + ", packageId=" + packageId + ", version=" + version
				+ ", standardApkId=" + standardApkId + "]";
	}

}
